import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/login',
            name: 'login',
            component: () => import('../views/UserLogin.vue')
        },
        {
            path: "/asset",
            name: "asset",
            component: () => import("../views/assetManager/Asset.vue")
        },
        {
            path: "/org",
            name: "org",
            component: () => import("../views/assetManager/Organization.vue")
        },
        {
            path: "/taskPublish",
            name: "taskPublish",
            component: () => import("../views/assetManager/TaskPublish.vue")
        },
        {
            path: "/taskAccept",
            name: "taskAccept",
            component: () => import("../views/tester/TaskAccept.vue")
        },
        {
            path: "/scan",
            name: "scan",
            component: () => import("../views/tester/Scan.vue")
        },
        {
            path: "/exploit",
            name: "exploit",
            component: () => import("../views/tester/Exploit.vue")
        },
        {
            path: "/move",
            name: "move",
            component: () => import("../views/tester/Move.vue")
        },
        {
            path: "/person",
            name: "person",
            component: () => import("../views/admin/person.vue")
        },
        {
            path: "/role",
            name: "role",
            component: () => import("../views/admin/role.vue")
        },
        {
            path: "/perm",
            name: "perm",
            component: () => import("../views/admin/permission.vue")
        },
    ]
})

export default router
